home *** CD-ROM | disk | FTP | other *** search
/ Grand Slam 3 / Grand Slam 3.iso / 026 / v16n23p.arj / V16N23P.TXT < prev   
Text File  |  1995-02-25  |  6KB  |  132 lines

  1. GUS Programmer's Digest     Thu, 23 Feb 95 12:07 PST     Volume 16: Issue  23 
  2.  
  3. Today's Topics:
  4.                    GUS Programmer's Digest V16 #22
  5.  
  6. Standard Info:
  7.     - Meta-info about the GUS can be found at the end of the Digest.
  8.     - Before you ask a question, please READ THE FAQ.
  9.  
  10. ----------------------------------------------------------------------
  11.  
  12. Date: Wed, 22 Feb 1995 18:20:43 -0500 (EST)
  13. From: "Y. Kim" <kqy5125@is.NYU.EDU>
  14. Subject: Re: GUS Programmer's Digest V16 #22
  15.  
  16. On Wed, 22 Feb -1, GUS Programmer's Server wrote:
  17.  
  18. > Date: Wed, 22 Feb 1995 11:27:30 GMT+1
  19. > From: "Emil Heyrovsky" <HEYROVSKY@km1.fjfi.cvut.cz>
  20. > Subject: volume ramping
  21. > Hello.
  22. > I'm trying to play .pat files using the sdk.
  23. > How do I determine which voice caused a volume ramp interrupt? 
  24. > Is there a function for this in the sdk? The documentation says 
  25. > that the voice number is returned to my handler as an unsigned 
  26. > integer. How is it returned?? (I'm learning C while doing this 
  27. > program.) 
  28. > Thanks in advance.
  29.  
  30. ???  What kind of interrupt handler are you using that you can get the 
  31. interrupt number like that?
  32.  
  33. If you're using a low-level (i.e. handles IRQs at the system level), the 
  34. appropriate register is:
  35.  
  36. 2.6.2.16.    IRQ Source Register - (F,8F)
  37.  
  38. =================================
  39. | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
  40. =================================
  41.   |   |   |   |   |   |   |   |
  42.   |   |   |   |   |   |   |   +----\
  43.   |   |   |   |   |   |   +-------- \
  44.   |   |   |   |   |   +------------  - Interrupting voice #
  45.   |   |   |   |   +---------------- /
  46.   |   |   |   +--------------------/
  47.   |   |   +------------------------ 1
  48.   |   +---------------------------- Volume Ramp IRQ pending
  49.   +-------------------------------- WaveTable IRQ pending
  50.  
  51. Bit 0-4-    Voice # (0-31) of interrupting voice
  52. Bit 5-    ALWAYS a 1
  53. Bit 6-    0 = Volume Ramp IRQ occurred
  54. Bit 7-    0 = Wavetable IRQ occurred
  55.  
  56. Note: This is a global read only register. There is only 1 for ALL voices.
  57. You MUST service any indicated IRQ's since a read of this port will clear
  58. the associated IRQ bits in the particular voice's control and/or volume
  59. control registers. 
  60.  
  61. Note: It is possible that multiple voices could interrupt at virtually the
  62. same time. In this case, this register will behave like a fifo. When in
  63. your IRQ handler, keep reading (and servicing) this register until you do
  64. a read with both IRQ bits set to a 1. This means there are no voice IRQs
  65. left to deal with. 
  66.  
  67. Note: Since it is possible to get ANOTHER IRQ from the same voice for the
  68. SAME reason, you must ignore any subsequent IRQ from that voice while in
  69. the IRQ handler.  For example, when a voice hits its end position and
  70. generates an IRQ back to your application, it will continue to generate
  71. IRQ's until either the voice is stopped, the IRQ enable is turned off, or
  72. the end location is moved. 
  73.  
  74. --- GUS SDK version 2.20
  75.  
  76. I haven't looked at the source code, just the documentation, so if this 
  77. doesn't help, sorry :(
  78.  
  79. ------------------------------
  80.  
  81. End of GUS Programmer's Digest V16 #23
  82. **************************************
  83.  
  84. To post to tomorrow's digest:                    <gus-sdk@mail.orst.edu>
  85. To (un)subscribe or get help:            <gus-sdk-request@mail.orst.edu>
  86. To contact a human (last resort):          <gus-sdk-owner@mail.orst.edu>
  87.  
  88.                        FTP Sites                     Archive Directories
  89.                        ---------                     -------------------
  90. Main N.American Site:  ftp.orst.edu                  pub/packages/gravis
  91.                        wuarchive.wustl.edu           systems/ibmpc/ultrasound
  92. Main Asian Site:       nctuccca.edu.tw               PC/ultrasound
  93. Main European Site:    src.doc.ic.ac.uk              packages/ultrasound
  94. Main Australian Site:  ftp.mpx.com.au                /ultrasound/general
  95.                                                      /ultrasound/submit
  96. South African Site:    ftp.sun.ac.za                 /pub/packages/ultrasound
  97. Submissions:           archive.epas.utoronto.ca      pub/pc/ultrasound/submit
  98. Newly Validated Files: archive.epas.utoronto.ca      pub/pc/ultrasound
  99.  
  100. Mirrors:               garbo.uwasa.fi                mirror/ultrasound
  101.                        ftp.st.nepean.uws.edu.au      pc/ultrasound
  102.                        ftp.luth.se                   pub/msdos/ultrasound
  103.  
  104.                        Gopher Sites                  Menu directory
  105.                        ------------                  --------------
  106. Main Site:             src.doc.ic.ac.uk              packages/ultrasound
  107.  
  108.                        WWW Pages
  109.                        ---------
  110. Main Site:             http://www.xmission.com/~grue/gus.html
  111.  
  112. Main European Site:    http://src.doc.ic.ac.uk/packages/ultrasound/
  113. Main Australian Site:  http://ftp.mpx.com.au/archive/ultrasound/general/
  114.                        http://ftp.mpx.com.au/archive/ultrasound/submit/
  115.                        http://ftp.mpx.com.au/gravis.html
  116.                        
  117. Mirrors:               http://www.st.nepean.uws.edu.au/pub/pc/ultrasound/
  118.  
  119. MailServer For Archive Access: Email to <mail-server@nike.rz.uni-konstanz.de>
  120.                                Email to <ftpmail@doc.ic.ac.uk>
  121.  
  122. New Submit Files Mailing List: Email to <listproc@uni-konstanz.de>
  123.                          with content "subscribe epas-list <your-name-here>"
  124.  
  125. Hints:
  126.       - Get the FAQ from the FTP sites or the request server.
  127.       - Mail to <gus-sdk-request@mail.orst.edu> for info about other GUS
  128.     related mailing lists (general use, musician's, etc.).
  129.  
  130.  
  131.